<!DOCTYPE html>
<html lang="en" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout/session}">
<body>
<div class="login-box" layout:fragment="content">
    <div class="white-box">
        <form id="form" class="form-horizontal form-material" data-th-action="@{/admin/login}" accept-charset="UTF-8" method="post" data-th-object="${login}">
            <h3 class="box-title m-b-20">医疗系统后台登录</h3>
            <div class="alert alert-danger" role="alert" data-th-if="${#fields.hasErrors('*')}">
                <span class="sr-only">错误:</span>
                <ul>
                    <li data-th-each="err: ${#fields.errors('*')}" data-th-text="${err}"></li>
                </ul>
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <input type="text" data-th-field="*{username}" class="form-control" placeholder="请输入登录名称" >
                </div>
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <input type="password" data-th-field="*{password}" class="form-control" placeholder="请输入密码" >
                </div>
            </div>
            <div class="form-group text-center m-t-20">
                <div class="col-xs-12">
                    <button class="btn btn-info btn-lg btn-block text-uppercase waves-effect waves-light" type="submit" >登录</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>